import { UITransform } from 'cc';
import { Label } from 'cc';
import { _decorator, Component, Node, log } from 'cc';
const { ccclass, property, executeInEditMode } = _decorator;

@ccclass('_BUTTON_LEVEL_HELPER')
@executeInEditMode
export class _BUTTON_LEVEL_HELPER extends Component {

    start() {
        let label = this.getComponent(Label);
        if (label != null) {
            this.node.setPosition(0, 12, 0);
            let uiTransform = this.node.getComponent(UITransform);
            uiTransform.height = 150;
            label.fontSize = 80;
            label.lineHeight = 85;
            label.outlineWidth = 4;
        }

        log('>>>已进行规范化');
        this.destroy();
    }
}

